import type { MockMethod } from 'vite-plugin-mock'
import Mock from 'mockjs'
const Random = Mock.Random
// const mock = Mock.mock

export default [
  {
    url: '/mock-api/upload',
    method: 'post',
    response() {
      return {
        status: true,
        message: 'success',
        code: 0,
        data: Random.image('100x100', Random.color(), Random.color(), 'IMAGE')
      }
    }
  }
] as MockMethod[]
